home *** CD-ROM | disk | FTP | other *** search
-
-
-
- cccchhhhkkkkuuuutttteeeennnntttt((((1111MMMM)))) cccchhhhkkkkuuuutttteeeennnntttt((((1111MMMM))))
-
-
-
- NNNNAAAAMMMMEEEE
- _cccc_hhhh_kkkk_uuuu_tttt_eeee_nnnn_tttt - check and repair utmp entries
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- _cccc_hhhh_kkkk_uuuu_tttt_eeee_nnnn_tttt _[[[[_----_ffff _uuuu_tttt_mmmm_pppp_xxxx_----_ffff_iiii_llll_eeee_]]]]_[[[[_----_wwww _wwww_tttt_mmmm_pppp_xxxx_----_ffff_iiii_llll_eeee_]]]]
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _cccc_hhhh_kkkk_uuuu_tttt_eeee_nnnn_tttt opens and reads _////_vvvv_aaaa_rrrr_////_aaaa_dddd_mmmm_////_uuuu_tttt_mmmm_pppp_xxxx and makes 2 checks for
- consistency; whether there are any entries that have duplicate 'id'
- fields, and whether there are any entries that are stale. Stale entries
- are found by looking at all entries that have _uuuu_tttt______tttt_yyyy_pppp_eeee equal to
- _UUUU_SSSS_EEEE_RRRR______PPPP_RRRR_OOOO_CCCC_EEEE_SSSS_SSSS and checking to see if the process (specified by _uuuu_tttt______pppp_iiii_dddd) is
- still alive. If it isn't, it sets the _uuuu_tttt______tttt_yyyy_pppp_eeee to _DDDD_EEEE_AAAA_DDDD______PPPP_RRRR_OOOO_CCCC_EEEE_SSSS_SSSS and sets
- the process's termination time to the current time. It then makes sure
- that the files _uuuu_tttt_mmmm_pppp, _wwww_tttt_mmmm_pppp, and _wwww_tttt_mmmm_pppp_xxxx are all consistent.
-
- Keeping the utmp file(s) consistent and up to date is important for
- accounting, _llll_aaaa_ssss_tttt(1), and other system administration functions. However,
- these files are updated by a variety of programs, some of which are
- public domain programs. If these programs are terminated without giving
- them the opportunity to clean up their _uuuu_tttt_mmmm_pppp entry, the files can easily
- get out of sync. The exact algorithm for updating the utmp files is also
- notoriously non-standard, so many third party or public domain
- applications may not quite do it correctly for IRIX. For these reasons,
- _cccc_hhhh_kkkk_uuuu_tttt_eeee_nnnn_tttt is run by _cccc_rrrr_oooo_nnnn(1M) every night and if any erroneous entries are
- found, they are repaired and a report sent to the system administrator.
- There are cases of corruption that _cccc_hhhh_kkkk_uuuu_tttt_eeee_nnnn_tttt cannot correct - in this case
- a message is printed with the word _C_O_R_R_U_P_T, and _cccc_hhhh_kkkk_uuuu_tttt_eeee_nnnn_tttt terminates
- without any further actions.
-
- If an administrator gets messages from _cccc_hhhh_kkkk_uuuu_tttt_eeee_nnnn_tttt frequently they may wish
- to start an investigation into which program(s) on the machine are
- generating them. Infrequent messages can safely be ignored.
-
- The following is a list of messages and probable causes:
-
- _c_h_k_u_t_e_n_t:_E_R_R_O_R:_w_r_i_t_e _f_a_i_l_e_d _o_n:_x_x
- The write to the _u_t_m_p_x file to correct a duplicate entry
- failed. This is likely due to an out of space condition on the
- file system that contains the _u_t_m_p_x file.
-
- _c_h_k_u_t_e_n_t:_u_t_m_p_x _f_i_l_e _x_x _C_O_R_R_U_P_T _w_i_t_h _d_u_p _e_n_t_r_y _a_n_d _n_e_i_t_h_e_r _e_n_t_r_y `_D_E_A_D'
- There is a duplicate entry (two entries with the same `id') but
- _cccc_hhhh_kkkk_uuuu_tttt_eeee_nnnn_tttt didn't know how to fix it since both entries claim to
- represent still existing sessions. Action to correct this
- problem should be taken promptly. Having everyone log out and
- then running _cccc_hhhh_kkkk_uuuu_tttt_eeee_nnnn_tttt will usually work. Otherwise, the _uuuu_tttt_mmmm_pppp
- and _uuuu_tttt_mmmm_pppp_xxxx files should be made zero length and the system
- rebooted.
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- cccchhhhkkkkuuuutttteeeennnntttt((((1111MMMM)))) cccchhhhkkkkuuuutttteeeennnntttt((((1111MMMM))))
-
-
-
- _c_h_k_u_t_e_n_t:_E_R_R_O_R:_C_o_u_l_d _n_o_t _u_p_d_a_t_e _u_t_m_p_x _f_i_l_e
- The call to _pppp_uuuu_tttt_uuuu_tttt_xxxx_llll_iiii_nnnn_eeee(3) failed. This is usually due to
- either an out of space problem or that the _u_t_m_p file
- corresponding to the _u_t_m_p_x file doesn't exist. It is important
- that both files exist - it is sufficient to simply _tttt_oooo_uuuu_cccc_hhhh(1) the
- missing file.
-
- _u_t_m_p_x _f_i_x - _x_x _x_x _x_x _x_x - _s_e_e _c_h_k_u_t_e_n_t(_1_M)
- This is `normal' message printed each time _cccc_hhhh_kkkk_uuuu_tttt_eeee_nnnn_tttt finds an
- entry that represents a stale session. If no other error
- message are printed, it can be assumed that this entry was
- fixed.
-
- _u_t_m_p_x _d_u_p - _x_x _x_x _x_x _x_x - _s_e_e _c_h_k_u_t_e_n_t(_1_M)
- This message printed each time _cccc_hhhh_kkkk_uuuu_tttt_eeee_nnnn_tttt finds a duplicate
- entry. This represents a serious corruption of the _u_t_m_p_x file.
- If this kind of corruption is frequently seen it is imperative
- that the offending program(s) be tracked down and fixed. If no
- other error message are printed, it can be assumed that this
- entry was fixed.
-
- The _cccc_hhhh_kkkk_uuuu_tttt_eeee_nnnn_tttt program may be run at any time by an administrator.
- _cccc_hhhh_kkkk_uuuu_tttt_eeee_nnnn_tttt does take an optional _----_ffff _u_t_m_p_x-_f_i_l_e argument to let it operate
- on any _u_t_m_p_x-like file. Similarly, the optional _----_wwww _w_t_m_p_x-_f_i_l_e argument
- instructs _cccc_hhhh_kkkk_uuuu_tttt_eeee_nnnn_tttt to operate on the given file when updating the _w_t_m_p
- records. If the _----_ffff option is given without the _----_wwww option, no _w_t_m_p
- processing is done.
-
- FFFFIIIILLLLEEEESSSS
- _////_vvvv_aaaa_rrrr_////_aaaa_dddd_mmmm_////_uuuu_tttt_mmmm_pppp
- _////_vvvv_aaaa_rrrr_////_aaaa_dddd_mmmm_////_uuuu_tttt_mmmm_pppp_xxxx
- _////_vvvv_aaaa_rrrr_////_aaaa_dddd_mmmm_////_wwww_tttt_mmmm_pppp
- _////_vvvv_aaaa_rrrr_////_aaaa_dddd_mmmm_////_wwww_tttt_mmmm_pppp_xxxx
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- _gggg_eeee_tttt_uuuu_tttt_xxxx(3C)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-